<md-dialog class="user-dialog" aria-label="Management"  ng-cloak>
<form name="newuser">
    <md-toolbar class="md-accent">
      <div class="md-toolbar-tools">
        <h2 class="dialog-title">New User</h2>
        <span flex></span>
        <md-button class="md-icon-button" ng-click="cancel()">
          <md-icon md-svg-src="/static/icon/close.svg" aria-label="Close dialog"></md-icon>
        </md-button>
      </div>
    </md-toolbar>
    <md-dialog-content>
      <div class="md-dialog-content" layout="column" layout-padding>
		  <md-list ng-clock class="config-list">
      <md-divider></md-divider>
      <md-subheader>Username</md-subheader>
      <md-list-item layout="row" layout-padding layout-align="center end">
        <md-input-container class="md-block" flex="80">
          <label>Username</label>
          <input name="imgnum" type="text" required ng-model="new_username">
          <div ng-messages="userman.imgnum.$error" multiple md-auto-hide="true">
          <div ng-message="required">
            please input a vaild number
          </div>
          </div>
        </md-input-container>
      </md-list-item>
  		<md-divider></md-divider>
      <md-subheader>Password</md-subheader>
  		<md-list-item class="config-item image-assign" layout="row" layout-padding layout-align="center end">
  		  <div class="passwd-area" flex="80" layout="column" >
          <md-input-container class="md-block" flex>
            <label>Enter New Password</label>
            <input required ng-model="newpassword" type="password">
          </md-input-container>
          <md-input-container class="md-block" flex>
            <label>Confirm Password</label>
            <input required ng-model="newcopassword" type="password">
          </md-input-container>
        </div>
  		</md-list-item>
      <md-divider></md-divider>
      <md-list-item>
        <p> isReviewer </p>
        <md-checkbox class="md-secondary" ng-model="newisReviewer"></md-checkbox>
      </md-list-item>
		</md-list>
      </div>
    </md-dialog-content>
    <md-dialog-actions layout="row">
    <md-button ng-click="cancel()">
        Cancel
      </md-button>
      <md-button class="md-accent" ng-click="create_user()">
       	Confirm
      </md-button>
    </md-dialog-actions>
</form>
</md-dialog>
